<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" >

<title>git删除分支 | After Learning</title>
<meta name="description" content="温故而知新">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="shortcut icon" href="http://www.zydone.xyz/favicon.ico?v=1571108508898">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/papercss@1.6.1/dist/paper.min.css" />
<link rel="stylesheet" href="http://www.zydone.xyz/styles/main.css">


  
    <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css" />
  

  

<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>


<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />


  </head>
  <body>
  
    <nav class="navbar border fixed split-nav">
  <div class="nav-brand">
    <h3><a href="http://www.zydone.xyz">After Learning</a></h3>
  </div>
  <div class="collapsible">
    <input id="collapsible1" type="checkbox" name="collapsible1">
    <button>
      <label for="collapsible1">
        <div class="bar1"></div>
        <div class="bar2"></div>
        <div class="bar3"></div>
      </label>
    </button>
    <div class="collapsible-body">
      <ul class="inline">
        
          <li>
            
              <a href="/" class="menu">
                首页
              </a>
            
          </li>
        
          <li>
            
              <a href="/archives" class="menu">
                归档
              </a>
            
          </li>
        
          <li>
            
              <a href="/tags" class="menu">
                标签
              </a>
            
          </li>
        
          <li>
            
              <a href="/post/about" class="menu">
                关于
              </a>
            
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div id="top" class="row site">
      <div class="sm-12 md-8 col">
        <div class="paper">
          <article class="article">
            <h1>git删除分支</h1>
            <p class="article-meta">
              2019-10-15
              
                <a href="http://www.zydone.xyz/tag/knzWI3FT-" class="badge secondary">
                  git
                </a>
              
            </p>
            
            <div class="post-content">
              <p>1、删除本地分支（先切换到其他分支）<br>
git branch -d dev20181018（-D 强制删除）</p>
<p>2、删除远程分支<br>
git push origin --delete dev20181018</p>

            </div>
          </article>
        </div>
        <div class="paper" data-aos="fade-in">
          
            <div class="next-post">
              <div class="next">
                下一篇
              </div>
              <a href="http://www.zydone.xyz/post/git-xiu-gai-fen-zhi-ming-cheng">
                <h3 class="post-title">
                  git修改分支名称
                </h3>
              </a>
            </div>
          
        </div>
        
          
            <div class="paper" data-aos="fade-in">
              <div id="gitalk-container"></div>
            </div>
          

          
        
      </div>

      <div class="sm-12 md-4 col sidebar">
  <div class="paper info-container">
    <img src="http://www.zydone.xyz/images/avatar.png?v=1571108508898" class="no-responsive avatar">
    <div class="text-muted">温故而知新</div>
    <div class="social-container">
      
        
          <a href="https://github.com/yida-zhang/after-learning.github.io" target="_blank">
            <i class="fab fa-github"></i>
          </a>
        
      
        
      
        
      
        
      
        
      
    </div>
  </div>
  <div class="paper">
    <div class="sidebar-title">
      最新文章
    </div>
    <div class="row">
      <ul>
        
          
            <li>
              <a href="http://www.zydone.xyz/post/git-shan-chu-fen-zhi">git删除分支</a>
            </li>
          
        
          
            <li>
              <a href="http://www.zydone.xyz/post/git-xiu-gai-fen-zhi-ming-cheng">git修改分支名称</a>
            </li>
          
        
          
            <li>
              <a href="http://www.zydone.xyz/post/git-cong-master-la-qu-fen-zhi">git从master拉取分支</a>
            </li>
          
        
          
            <li>
              <a href="http://www.zydone.xyz/post/git-he-bing-qi-ta-fen-zhi-dai-ma-dao-master">git合并其他分支代码到master</a>
            </li>
          
        
          
            <li>
              <a href="http://www.zydone.xyz/post/linux-chang-yong-ming-ling">linux常用命令</a>
            </li>
          
        
      </ul>
    </div>
  </div>
  <div class="paper">
    <div class="sidebar-title">
      标签列表
    </div>
    <div class="row">
      
        <a href="http://www.zydone.xyz/tag/knzWI3FT-" class="badge success">
          git
        </a>
      
        <a href="http://www.zydone.xyz/tag/GEcvnyWUF" class="badge success">
          linux
        </a>
      
    </div>
  </div>
  <div class="paper">
    Powered by <a href="https://github.com/yida-zhang/after-learning.github.io" target="_blank">After Learning</a>
  </div>
</div>


    </div>

    <script src="https://unpkg.com/aos@next/dist/aos.js"></script>

<script type="application/javascript">

AOS.init();

hljs.initHighlightingOnLoad()

</script>


  
  
    <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
    <script>

      var gitalk = new Gitalk({
        clientID: '78af740def51eebd6b69',
        clientSecret: '81410d1d98cf274e622fb4992049608e50f3db88',
        repo: 'after-learning.github.io',
        owner: 'yida-zhang',
        admin: ['yida-zhang'],
        id: location.pathname,      // Ensure uniqueness and length less than 50
        distractionFreeMode: false  // Facebook-like distraction free mode
      })

      gitalk.render('gitalk-container')

    </script>
  

  




  </body>
</html>
